package com.food.user.exception.userAccountException;

public enum UserAccountExceptionCode {
    USER_ACCOUNT_PHONE_EXIST(9001,"该手机号已被注册！"),
    USER_ACCOUNT_PHONE_CODE_TIME_OUT(9002,"验证码已过期"),
    USER_ACCOUNT_PHONE_CODE_ERROR(9003,"验证码错误"),
    USER_ACCOUNT_NOT_REGISTER(9004,"账号未注册"),
    USER_ACCOUNT_PASSWORD_ERROR(9005,"密码错误"),
    USER_ACCOUNT_SEND_CODE_FREQUENT(9006,"发送验证码过于频繁"),
    USER_ACCOUNT_SEND_CODE_FIVETIMES(9007,"一小时内发送验证码上限"),
    USER_PASSWORD_EQUAL(9008,"新密码不能和旧密码一致"),
    USER_OLD_PASSWORD_ERROR(9009,"原密码错误");
    Integer code;
    String message;

    UserAccountExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode(){return code;}
    public String getMessage(){return message;}
}
